20230322
[shlib.git] / testing / 2.scripttest_testing.Testing for scripttest.unit / 4.scripttest_develop.develop opt testing.dir / 1.scripttest_param_q.sh.Testsuite paramter -q only display failed no info.txt
blob8841385f7bceb09ef6186660dd31b89138917a81
1 \e[27m./1.scripttest_param_q.sh
2 XXX
3 ================================
4 clean test dir.
5 ================================
6 \e[27mclean testing temp dir!
7 re-init tmp dir.
8 ================================
9 test 5 items continously, ignore err when testing.
10 ================================
11 \e[27mFull item testing.
12 Test item count: 5
13 begin testing ... 
14 \e[1m\e[32m    [unit] 1."测试套件的测试" begin testing ...\e[0m
15 \e[1m\e[35m        [item] 1."测试环境运行" ... \e[0m\e[1m\e[31m[failed]\e[0m
16 testing result difference from correct output.
17 stdout > testout
18 ###############################################
19 2c2
20 \e[36m<\e[0m \e[31m[err]: \e[0m./1.test_suite_testing.sh
21 ---
22 \e[36m\e[7m>\e[0m [err]: ./1.test_suite_testing.sh
23 ###############################################
24 \e[1m\e[35m        [item] 2."测试命令的-a功能参数测试" ... \e[0m\e[1m\e[31m[failed]\e[0m
25 testing result difference from correct output.
26 stdout > testout
27 ###############################################
28 2c2
29 \e[36m<\e[0m \e[31m[err]: \e[0m./2.scripttest_param_a.sh
30 ---
31 \e[36m\e[7m>\e[0m [err]: ./2.scripttest_param_a.sh
32 ###############################################
33 \e[1m\e[32m    [unit] 2."脚本运行环境测试" begin testing ...\e[0m
34 \e[1m\e[35m        [item] 1."解释器修正程序测试" ... \e[0m\e[1m\e[31m[failed]\e[0m
35 testing result difference from correct output.
36 stdout > testout
37 ###############################################
38 1,10d0
39 \e[36m<\e[0m n1.无参数。对文件中原有的interpreter进行路径修正,如果不存在,输出提示信息。
40 \e[36m<\e[0m cp: warning: source file '1.shell_interpreter_fix_testing.sh' specified more than once
41 \e[36m<\e[0m chmod: cannot access 'scripts/*': No such file or directory
42 \e[36m<\e[0m head: cannot open 'scripts/1.interpreter_sh_with_wrong_path.sh' for reading: No such file or directory
43 \e[36m<\e[0m /bin/bash
44 \e[36m<\e[0m /bin/sh
45 \e[36m<\e[0m head: cannot open 'scripts/1.interpreter_sh_with_wrong_path.sh' for reading: No such file or directory
46 \e[36m<\e[0m interpreter not fixed.
47 \e[36m<\e[0m ./1.shell_interpreter_fix_testing.sh: line 43: ./scripts/1.interpreter_sh_with_wrong_path.sh: No such file or directory
48 \e[36m<\e[0m interpreter not fixed
49 ###############################################
50 \e[1m\e[35m        [item] 2."shell解释器路径测试" ... \e[0m\e[1m\e[31m[failed]\e[0m
51 testing result difference from correct output.
52 stdout > testout
53 ###############################################
54 1,2d0
55 \e[36m<\e[0m \e[27m./2.shell_interpreter_path.sh
56 \e[36m<\e[0m ./2.shell_interpreter_path.sh
57 ###############################################
58 \e[1m\e[35m        [item] 3."系统命令列表" ... \e[0m\e[1m\e[31m[failed]\e[0m
59 testing result difference from correct output.
60 stdout > testout
61 ###############################################
62 1,2d0
63 \e[36m<\e[0m \e[27m./3.sys_cmd_list.sh
64 \e[36m<\e[0m ./3.sys_cmd_list.sh
65 ###############################################
66 end testing ...
67 \e[31m(\e[32m5\e[31m) items is tested,Error count is (\e[32m5\e[31m)\e[0m
68 ================================
69 test 5 items continously, ignore err, and do not dispaly diff info for errs.
70 ================================
71 \e[27mFull item testing.
72 Test item count: 5
73 begin testing ... 
74 \e[1m\e[32m    [unit] 1."测试套件的测试" begin testing ...\e[0m
75 \e[1m\e[35m        [item] 1."测试环境运行" ... \e[0m\e[1m\e[31m[failed]\e[0m
76 \e[1m\e[35m        [item] 2."测试命令的-a功能参数测试" ... \e[0m\e[1m\e[31m[failed]\e[0m
77 \e[1m\e[32m    [unit] 2."脚本运行环境测试" begin testing ...\e[0m
78 \e[1m\e[35m        [item] 1."解释器修正程序测试" ... \e[0m\e[1m\e[31m[failed]\e[0m
79 \e[1m\e[35m        [item] 2."shell解释器路径测试" ... \e[0m\e[1m\e[31m[failed]\e[0m
80 \e[1m\e[35m        [item] 3."系统命令列表" ... \e[0m\e[1m\e[31m[failed]\e[0m
81 end testing ...
82 \e[31m(\e[32m5\e[31m) items is tested,Error count is (\e[32m5\e[31m)\e[0m
83 ================================